The SourceCop protection is gone, and I removed any links back to M8D except for the copyright text and the web link in custom.php.  If you allow search engines to surf your site, I would recommend changing the $serid string in both genz.php and genzi.php (line 19) to ANYTHING that does not have their name.  I would also use the CUSTOM and LANG files to change every displayed phrase.  It's amazing what you can find with a simple Google search.


I've changed a few things in how the original program operated for ease of use.  First, the author had included a PHP5 function in the code, and it would NOT run on PHP4, regardless of what it says on the website and in the 'Requirements' in the instructions.  I've corrected that, so it SHOULD work on both again (I only have PHP4 to test with).

If you had many fonts, the pop-up window with PICK ME got very annoying, and finding the same font later was nearly impossible.  I changed the font picker pop-up to show the font names instead.

I also extended the number of animation frames.  The original progam had locked the animation at 3 frames, mostly because a lot of the free glitter fills are old Paintshop Pro 3-frame animations.  There wasn't any reason why the program shouldn't adapt to better animations, though.  When I started testing I notice that ImageMagick appears to only work with animations up to 9 frames long, and wraps if there are more frames.  If you have an 11-frame animation, the final 2 frames will overlap onto the first two frames, etc.  It's not perfect, but it's better than the 3-frame glitters.  Starbursts in 3 frames just don't cut it.

I had to widen the width of both the font and glitter pop-up windows to account for the font names and for larger glitter samples.  You are NOT limited to the old 60x30 glitter tiles.

The program does not sort for the pop-up windows, so generally any new additions will be at the bottom of the pop-up.  If you delete all of the existing files and replace from a new zip or upload, they are displayed in the order they're copied/created in the respective directories.

As an end-user of glitter stuff, I don't like watermarks or link-backs.  If you don't like them either, then don't change the watermark and leave the link-back in controlz.ini as 'Your Website' and they won't be generated. :D

Use note: if you change the default font and glitter, make sure that both files exist also in the respective fontz and imgz directories.  The defaults must always be in both places the way this code works.

Oh, one requirement the original authors forgot to mention:  you not only need PHP4/5 AND ImageMagick 6.1 or higher, your host also has to support exec() functions.  Some do, some don't, some will move you to a server that supports exec() IF you ask for it.  It's a security hazard for them because you can crash their server, so be aware.


I've played around with a large number of fonts, and seen some very odd behavior out of this generator.  3 of my fonts wouldn't display in the glitter preview, although they generated the pop-up graphic.  Those three fonts opened OK in FontLab, but showed only my server name in the glitter preview.  Also, about 1 out of 5 older fonts I have tried to add is not centered, some so badly that parts of the letters are clipped, some VERY severely clipped (see FREEBSC_.ttf, 'Freebooter Script' for an example).  I suspect it's a combination of the ImageMagick version and the old font metrics/dimensions being incorrect, as I've seen a number of ugly mistakes in older fonts.  All bets are off.  Some fonts will work for you, some will not.  I've corrected a few in FontLab by changing some of the parameters in FILE - FILE INFO - Metrics and Dimensions.  Good luck!


Don't forget to DELETE install.php, custom.php and lang.php when you are done!  I have NOT needed CHMOD 777 permissions on ANY directory at any of the 3 different servers I have tested at, so I recommend you leave all directory permissions at 755 and files at 644 after installation.  DO NOT GIVE HACKERS A WAY TO WRITE TO YOUR SERVER!!!

